﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Registracija.aspx.cs" Inherits="Registracija" Title="Регистрација" Theme="Theme" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    .style3
    {
        width: 424px;
    }
    .style4
    {
        width: 424px;
        height: 20px;
    }
    .style5
    {
        height: 20px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
    
    <asp:MultiView ID="mv_registracija" runat="server" 
    onactiveviewchanged="mv_registracija_ActiveViewChanged">
        <asp:View ID="mv_reg0" runat="server">
        <table style="font-family: Arial; font-size: small; background-color: #F3F3F3;" 
        width="100%">
        <tr>
            <td align="right">
                Име:</td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server" SkinID="txtbox1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="TextBox1" Display="None" ErrorMessage="Внесете Име!"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                Презиме:</td>
            <td>
                <asp:TextBox ID="TextBox2" runat="server" SkinID="txtbox1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="TextBox2" Display="None" ErrorMessage="Внесете Презиме!"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                e-mail:</td>
            <td>
                <asp:TextBox ID="TextBox3" runat="server" SkinID="txtbox1"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="TextBox3" Display="None" 
                    ErrorMessage="Погрешно напишана e-mail адреса!" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                Корисничко Име:</td>
            <td>
                <asp:TextBox ID="TextBox4" runat="server" SkinID="txtbox1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="TextBox4" Display="None" 
                    ErrorMessage="Внесете Корисничко Име!"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                Лозинка:</td>
            <td>
                <asp:TextBox ID="TextBox5" runat="server" SkinID="txtbox1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="TextBox5" Display="None" ErrorMessage="Внесете Лозинка!"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                Повтори Лозинка:</td>
            <td>
                <asp:TextBox ID="TextBox6" runat="server" SkinID="txtbox1"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="TextBox5" ControlToValidate="TextBox6" Display="None" 
                    ErrorMessage="Лозинката се разликува!"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="btn_registracija" runat="server" SkinID="button" 
                    Text="Регистрирај" onclick="btn_registracija_Click" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Label ID="lbl_result1" runat="server" ForeColor="Red"></asp:Label>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                    Font-Size="X-Small" />
            </td>
        </tr>
    </table>
        </asp:View>
        <asp:View ID="mv_reg1" runat="server">
             <table style="font-family: Arial; font-size: medium; background-color: #F3F3F3;" 
                 width="100%">
                          <tr>
                                                            <td colspan="2">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2" align="center">
                                                                Добредојдовте
                                                                <asp:Label ID="lbl_user" runat="server"></asp:Label>
                                                                ,</td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2" align="center">
                                                                Ви благодариме што сте дел од нашиот Фото форум</td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2" align="center">
                                                                со
                                                                <asp:Label ID="lbl_member" runat="server"></asp:Label>
                                                                членови!</td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                &nbsp;</td>
                                                        </tr>
                                                    <tr>
                                                        <td class="style4">
                                                            </td>
                                                        <td align="center" class="style5">
                                                            <asp:LinkButton ID="lnk_Enter" runat="server" ForeColor="#0099FF" 
                                                                onclick="lnk_Enter_Click">Влез! &gt;&gt;</asp:LinkButton>
                                                        </td>
                          </tr>
                                                    <tr>
                                                        <td class="style3">
                                                            &nbsp;</td>
                                                        <td align="center">
                                                            &nbsp;</td>
                          </tr>
                                                    </table>
        </asp:View>
    </asp:MultiView>
    
</asp:Content>

